package com.smaato;

/**
 * This interface represents the listener interface used to notify that the
 * SmaatoAPI getAd has completed. 
 *
 * @see SmaatoAPI
 */
public interface SmaatoAPICallback 
{
	/**
	 * Notifies the listener that getAd returned successfully. It is now safe to call showAd().
	 * 
	 * @see SmaatoAPI
	 */
	public void getAdNotifySuccess();
	
	/**
	 * Notifies the listener that there was an error while calling getAd.
	 * 
	 * @param errorCode One of the internal error codes (see SmaatoAPI) or a server error code.
	 * @param errorString A human readable error string. This can be used to aid debugging.
	 * 
	 * @see SmaatoAPI
	 */
	public void getAdNotifyError(int errorCode, String errorString);
}
